package com.itqf.anno;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/19
 * @Time: 下午4:21
 */
public class Student {

    public  Student(){
        System.out.println("student实例化....");
    }

    @PostConstruct  //初始化
    public   void  init(){
        System.out.println("初始化...");
    }

    @PreDestroy //销毁
    public   void  destory(){
        System.out.println("销毁对象.....");
    }

}
